<template>
  <div>
    <h3>数据:{{ data }}</h3>
    <input type="button" value="提交" @click="btn">
  </div>
</template>

<script setup lang="ts">

//直接定义数据
let data = "好好学习,天天向上"

//定义函数
function btn(){
  alert("good good study,day day up")
}

</script>

<style scoped>

</style>